package com.woniuxy.orderassembly.model;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author chestnut
 * @since 2021-05-24
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("hotel_order")
public class Order implements Serializable {

    private static final long serialVersionUID=1L;

    @TableId(value = "order_id", type = IdType.AUTO)
    private Integer orderId;

    /**
     * 用户id
     */
    private Integer userId;

    /**
     * 酒店ID
     */
    private Integer hotelId;

    /**
     * 房间门牌号
     */
    private Integer roomId;

    /**
     * 是否为异常订单。是否该订单面临投诉、退款等问题
     */
    private Integer orderException;

    /**
     * 初始下单账单金额
     */
    private Double initialAmount;

    /**
     * 优惠券id
     */
    private Integer couponId;

    /**
     * 实际最终下单金额
     */
    private Double actualAmount;

    /**
     * 订单状态:0待支付？1待确认？2待消费？3待评价？4已完成？
     */
    private Integer status;

    /**
     * 下单时间
     */
    private LocalDateTime orderTime;

    /**
     * 入住起始日期
     */
    private LocalDateTime timeOfStart;

    /**
     * 入住终止日期
     */
    private LocalDateTime timeOfEnd;


}
